package com.niuweb.admin;

import com.niuweb.common.utils.SpringUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;


@EnableScheduling
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})

public class NiuwebApplication {

    public static void main(String[] args) {
        SpringApplication.run(NiuwebApplication.class, args);
    }

    @Bean
    public SpringUtil getSpringUtil() {
        return new SpringUtil();
    }

}
